	format	MS COFF
	extrn	___bb_appstub_appstub
	extrn	___bb_audio_audio
	extrn	___bb_blitz_blitz
	extrn	___bb_cal3d_cal3d
	extrn	___bb_calb3d_calb3d
	extrn	___bb_d3d7max2d_d3d7max2d
	extrn	___bb_d3d9max2d_d3d9max2d
	extrn	___bb_data_data
	extrn	___bb_directsoundaudio_directsoundaudio
	extrn	___bb_eventqueue_eventqueue
	extrn	___bb_freeaudioaudio_freeaudioaudio
	extrn	___bb_freejoy_freejoy
	extrn	___bb_freeprocess_freeprocess
	extrn	___bb_freetypefont_freetypefont
	extrn	___bb_gnet_gnet
	extrn	___bb_loader_loader
	extrn	___bb_macos_macos
	extrn	___bb_map_map
	extrn	___bb_maxlua_maxlua
	extrn	___bb_maxutil_maxutil
	extrn	___bb_minib3d_minib3d
	extrn	___bb_oggloader_oggloader
	extrn	___bb_openalaudio_openalaudio
	extrn	___bb_tgaloader_tgaloader
	extrn	___bb_timer_timer
	extrn	___bb_wavloader_wavloader
	extrn	_bbEnd
	extrn	_bbMilliSecs
	extrn	_bbNullObject
	extrn	_bbObjectNew
	extrn	_bbStringClass
	extrn	_bbStringConcat
	extrn	_bbStringFromInt
	extrn	_brl_bank_LoadBank
	extrn	_brl_blitz_DebugStop
	extrn	_brl_graphics_Flip
	extrn	_brl_polledinput_KeyDown
	extrn	_brl_polledinput_KeyHit
	extrn	_c3d_cal3d_Delta
	extrn	_c3d_calb3d_CB3DModel
	extrn	_c3d_loader_LoadXMLAnimation
	extrn	_c3d_loader_LoadXMLMaterial
	extrn	_c3d_loader_LoadXMLMesh
	extrn	_c3d_loader_LoadXMLMorphAnimation
	extrn	_c3d_loader_LoadXMLSkeleton
	extrn	_sidesign_minib3d_CreateCamera
	extrn	_sidesign_minib3d_CreateLight
	extrn	_sidesign_minib3d_Graphics3D
	extrn	_sidesign_minib3d_MoveEntity
	extrn	_sidesign_minib3d_PositionEntity
	extrn	_sidesign_minib3d_RenderWorld
	extrn	_sidesign_minib3d_Text
	extrn	_sidesign_minib3d_TurnEntity
	public	__bb_main
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	push	ebx
	push	esi
	push	edi
	cmp	dword [_60],0
	je	_61
	mov	eax,0
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_61:
	mov	dword [_60],1
	call	___bb_blitz_blitz
	call	___bb_minib3d_minib3d
	call	___bb_cal3d_cal3d
	call	___bb_calb3d_calb3d
	call	___bb_loader_loader
	call	___bb_appstub_appstub
	call	___bb_audio_audio
	call	___bb_d3d7max2d_d3d7max2d
	call	___bb_d3d9max2d_d3d9max2d
	call	___bb_data_data
	call	___bb_directsoundaudio_directsoundaudio
	call	___bb_eventqueue_eventqueue
	call	___bb_freeaudioaudio_freeaudioaudio
	call	___bb_freetypefont_freetypefont
	call	___bb_gnet_gnet
	call	___bb_map_map
	call	___bb_maxlua_maxlua
	call	___bb_maxutil_maxutil
	call	___bb_oggloader_oggloader
	call	___bb_openalaudio_openalaudio
	call	___bb_tgaloader_tgaloader
	call	___bb_timer_timer
	call	___bb_wavloader_wavloader
	call	___bb_freejoy_freejoy
	call	___bb_freeprocess_freeprocess
	call	___bb_macos_macos
	mov	ebx,1024
	mov	ecx,768
	mov	edx,0
	mov	eax,2
	push	-1
	push	60
	push	eax
	push	edx
	push	ecx
	push	ebx
	call	_sidesign_minib3d_Graphics3D
	add	esp,24
	push	_bbNullObject
	call	_sidesign_minib3d_CreateCamera
	add	esp,4
	mov	dword [ebp-12],eax
	push	0
	push	-1049624576
	push	1092616192
	push	0
	push	dword [ebp-12]
	call	_sidesign_minib3d_PositionEntity
	add	esp,20
	push	_bbNullObject
	push	1
	call	_sidesign_minib3d_CreateLight
	add	esp,8
	push	_c3d_calb3d_CB3DModel
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-16],eax
	mov	ebx,dword [ebp-16]
	push	_25
	call	_brl_bank_LoadBank
	add	esp,4
	push	eax
	call	_c3d_loader_LoadXMLSkeleton
	add	esp,4
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,8
	mov	ebx,dword [ebp-16]
	push	_26
	call	_brl_bank_LoadBank
	add	esp,4
	push	eax
	call	_c3d_loader_LoadXMLMesh
	add	esp,4
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+76]
	add	esp,8
	mov	ebx,dword [ebp-16]
	mov	eax,dword [ebp-16]
	push	dword [eax+8]
	push	_27
	call	_brl_bank_LoadBank
	add	esp,4
	push	eax
	call	_c3d_loader_LoadXMLAnimation
	add	esp,8
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+60]
	add	esp,8
	mov	ebx,dword [ebp-16]
	push	_28
	call	_brl_bank_LoadBank
	add	esp,4
	push	eax
	call	_c3d_loader_LoadXMLMorphAnimation
	add	esp,4
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+64]
	add	esp,8
	mov	ebx,dword [ebp-16]
	push	_1
	push	0
	push	_29
	call	_brl_bank_LoadBank
	add	esp,4
	push	eax
	call	_c3d_loader_LoadXMLMaterial
	add	esp,4
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,16
	mov	eax,dword [ebp-16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+80]
	add	esp,4
	fld	dword [_62]
	fstp	dword [ebp-4]
	call	_bbMilliSecs
	mov	edi,eax
	mov	ebx,0
	mov	dword [ebp-8],0
	jmp	_30
_32:
	mov	eax,dword [_c3d_cal3d_Delta]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	13
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_55
	call	_brl_blitz_DebugStop
_55:
	push	87
	call	_brl_polledinput_KeyDown
	add	esp,4
	mov	esi,eax
	push	83
	call	_brl_polledinput_KeyDown
	add	esp,4
	sub	esi,eax
	mov	dword [ebp+-20],esi
	fild	dword [ebp+-20]
	sub	esp,4
	fstp	dword [esp]
	push	0
	push	68
	call	_brl_polledinput_KeyDown
	add	esp,4
	mov	esi,eax
	push	65
	call	_brl_polledinput_KeyDown
	add	esp,4
	sub	esi,eax
	mov	dword [ebp+-20],esi
	fild	dword [ebp+-20]
	sub	esp,4
	fstp	dword [esp]
	push	dword [ebp-12]
	call	_sidesign_minib3d_MoveEntity
	add	esp,16
	push	0
	push	0
	push	37
	call	_brl_polledinput_KeyDown
	add	esp,4
	mov	esi,eax
	push	39
	call	_brl_polledinput_KeyDown
	add	esp,4
	sub	esi,eax
	mov	dword [ebp+-20],esi
	fild	dword [ebp+-20]
	sub	esp,4
	fstp	dword [esp]
	push	40
	call	_brl_polledinput_KeyDown
	add	esp,4
	mov	esi,eax
	push	38
	call	_brl_polledinput_KeyDown
	add	esp,4
	sub	esi,eax
	mov	dword [ebp+-20],esi
	fild	dword [ebp+-20]
	sub	esp,4
	fstp	dword [esp]
	push	dword [ebp-12]
	call	_sidesign_minib3d_TurnEntity
	add	esp,20
	push	189
	call	_brl_polledinput_KeyDown
	add	esp,4
	cmp	eax,0
	je	_56
	fld	dword [ebp-4]
	fsub	dword [_63]
	fstp	dword [ebp-4]
_56:
	push	187
	call	_brl_polledinput_KeyDown
	add	esp,4
	cmp	eax,0
	je	_57
	fld	dword [ebp-4]
	fadd	dword [_64]
	fstp	dword [ebp-4]
_57:
	mov	edx,dword [ebp-16]
	mov	eax,dword [_c3d_cal3d_Delta]
	fld	dword [eax+24]
	fdiv	dword [_65]
	sub	esp,4
	fstp	dword [esp]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+88]
	add	esp,8
	call	_sidesign_minib3d_RenderWorld
	add	ebx,1
	call	_bbMilliSecs
	sub	eax,edi
	cmp	eax,1000
	jl	_59
	call	_bbMilliSecs
	mov	edi,eax
	mov	dword [ebp-8],ebx
	mov	ebx,0
_59:
	push	dword [ebp-8]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_33
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	0
	push	0
	call	_sidesign_minib3d_Text
	add	esp,12
	push	_34
	push	20
	push	0
	call	_sidesign_minib3d_Text
	add	esp,12
	push	-1
	call	_brl_graphics_Flip
	add	esp,4
_30:
	push	27
	call	_brl_polledinput_KeyDown
	add	esp,4
	cmp	eax,0
	je	_32
_31:
	call	_bbEnd
	mov	eax,0
	jmp	_35
_35:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_60:
	dd	0
	align	4
_25:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	99,117,98,101,46,120,115,102
	align	4
_26:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	99,117,98,101,46,120,109,102
	align	4
_27:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	99,117,98,101,46,120,97,102
	align	4
_28:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	99,117,98,101,46,120,112,102
	align	4
_1:
	dd	_bbStringClass
	dd	2147483647
	dd	0
	align	4
_29:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	99,117,98,101,46,120,114,102
	align	4
_62:
	dd	0x0
	align	4
_63:
	dd	0x3dcccccd
	align	4
_64:
	dd	0x3dcccccd
	align	4
_65:
	dd	0x42700000
	align	4
_33:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	70,80,83,58,32
	align	4
_34:
	dd	_bbStringClass
	dd	2147483647
	dd	14
	dw	43,47,45,32,116,111,32,97,110,105,109,97,116,101
